package com.sreasons.prjhotel.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class FacturaDetalleId implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2064822345336845551L;


	@Column
	private int idfact;
	
	@Column
	private int idesta;
	public int getIdesta() {
		return idesta;
	}
	public void setIdesta(int idesta) {
		this.idesta = idesta;
	}
	public int getIdfact() {
		return idfact;
	}
	public void setIdfact(int idfact) {
		this.idfact = idfact;
	}
	
	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FacturaDetalleId))
			return false;
		FacturaDetalleId castOther = (FacturaDetalleId) other;

		return (this.getIdesta() == castOther
				.getIdesta())
				&& (this.getIdfact() == castOther.getIdfact());
	}

	public int hashCode() {
		int result = 17;
		result = 37 * result + this.getIdesta();
		result = 37 * result + this.getIdfact();		
		return result;
	}
	
	
}
